package com.lsl.facade_pattern.example;

/**
 * description:
 *
 * @author: liushengli
 * data: 2022/11/30
 */


//DVD
public class DvdPlayer {

    private DvdPlayer() {
    }

    private static DvdPlayer dvdPlayer = new DvdPlayer();

    public static DvdPlayer getInstance() {
        return dvdPlayer;
    }

    public void on() {
        System.out.println("...dvd on...");

    }

    public void off() {
        System.out.println("...dvd off...");

    }

    public void play() {
        System.out.println("...dvd play...");

    }

    public void pause() {
        System.out.println("...dvd pause...");

    }
}